package com.tengju.data.domain.model.clickhouse.star;

import com.tengju.data.domain.model.user.StarLevelEnum;
import com.tengju.data.domain.model.user.UserIdCode;

public class DominationNewMemberFormFactory {

    public static DominationNewMemberForm create(UserIdCode idCode,Integer starLevel,Integer pageIndex,Integer pageSize) {

        DominationNewMemberForm form = new DominationNewMemberForm();
        form.setIdCode(idCode);
        form.setStarLevel(StarLevelEnum.parseByStarLevel(starLevel));
        form.setPageIndex(pageIndex);
        form.setPageSize(pageSize);
        return form;

    }
}
